/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.weeego.web.action.session;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sql.weeego.bean.base.CenterUser;
import com.weeego.web.base.BaseAction;
import java.util.Map;

/**
 *
 * @author zuaa
 */
public class AdminSession extends BaseAction {

    public String execute() throws Exception {
        CenterUser _CenterUser = new CenterUser();
        Map session = ActionContext.getContext().getSession();

        this.commondResult = "2";
        if (session != null) {
            _CenterUser = (CenterUser) session.get("user");
            if (_CenterUser != null) {
                this.commondResult = "1";
            }
        }

        return SUCCESS;

    }
}
